package com.heima.user.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.model.article.dtos.AuthDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.user.service.IApUserRealnameService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP实名认证信息表 前端控制器
 * </p>
 */
@RequiredArgsConstructor
@RestController
public class ApUserRealnameController {

    private final IApUserRealnameService realnameService;

    @PostMapping("/auth/list")
    ResponseResult auth(@RequestBody AuthDto authDto) {
        return realnameService.auth(authDto);
    }

    @PostMapping("/authFail")
    ResponseResult authFail(@RequestBody AuthDto authDto){
        return realnameService.authFail(authDto);
    }


    @PostMapping("/authPass")
    ResponseResult authPass(@RequestBody AuthDto authDto){
        return realnameService.authPass(authDto);
    }



}

